import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

// 引入echarts  挂载到vue原型链
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts;

// 引入主题文件 注意一定在是引入echarts后面
import "../public/static/theme/vintage.js";

// 引入axios设置请求基础路径 挂载到vue原型链
import axios  from 'axios';
axios.defaults.baseURL='http://localhost:3000/api/' //设置默认请求地址
Vue.prototype.$http = axios;

// 引入基础样式文件
import "@/assets/css/global.css"

// 引入iconfont.css
import "@/assets/font/iconfont.css"

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
